<template>
    <EleTableComp :config="config">
     
        <template v-slot:costomLook="slotData">
            <cancellation-check :data="slotData.data"></cancellation-check>
        </template>
           <template v-slot:costomCheck="slotData">
            <cancellation-look :data="slotData.data"></cancellation-look>
        </template>
        
    </EleTableComp>
</template>

<script>
    import EleTableComp from "@/components/EleTableComp";
    import {typeJson} from "@/components/EleTableComp/config";
    import cancellationCheck from "./cancellationCheck";
    import cancellationLook from "./cancellationLook";
    export default {
        data() {
            return {
                config: {
                    header: {
                       // breadcrumb: `${this.$store.state.mindName}待复查`,
                        addButton: false,
                        search: [
                               {
              type: "datePicker",
              value: "",
              prop: "startDate",
              label: "发现时间",
            },
            {
              type: "datePicker",
              value: "",
              prop: "endDate",
              label: "至",
            },
            {
              type: "dropDown",
              prop: "verifyStatus",
              value: "",
              label: "核查状态",
              list: typeJson.verifyStatus,
            },
          
            {
              type: "dropDown",
              prop: "level",
              value: "",
              label: "隐患级别",
              list: typeJson.level,
            },
            {
              label: "隐患来源",
              prop: "source",
              type: "dropDown",
              list: typeJson.source,
              value: "",
            },
          
            {
              label: "发现方式",
              prop: "discoverWay",
              type: "dropDown",
              list: typeJson.riskRule,
              value: "",
            },
                {
              type: "datePicker",
              value: "",
              prop: "expiresStartDate",
              label: "整改期限",
            },
            {
              type: "datePicker",
              value: "",
              prop: "expiresEndDate",
              label: "至",
            },
                        ]
                    },
                    table: [
                        {
                            label: '隐患描述',
                            prop: 'content',
                            value: ''
                        },
                        {
                            label: '隐患级别',
                            prop: 'level',
                            type: 'dropDown',
                            list: typeJson.level,
                            value: ''
                        },
                        {
                            label: '隐患发现方式',
                            prop: 'discoverWay',
                            type: 'dropDown',
                            list: typeJson.riskRule,
                            value: ''
                        },
                        {
                            label: '隐患发现时间',
                            prop: 'discoverDate',
                            value: ''
                        },
                        {
                            label: '整改期限',
                            prop: 'rectifyExpires',
                            value: ''
                        },
                        {
                            label: '复查状态',
                            prop: 'reviewStatus',
                            type: 'dropDown',
                            list: typeJson.reviewStatus,
                            value: ''
                        },
                        {
                            label: '操作',
                            prop: '', // 传数据的时候 忽略
                            type: 'operation',
                            addEditHidden: true,
                            isParam: false,
                            edit: false,
                            delete: false,
                            look: false,
                            slotName: ['costomCheck','costomLook']
                        }
                    ],
                    select: {
                        url: '/app/riskExcludeNew/getList',
                        method: 'POST',
                        mineId: true,
                        currentPage: 1,
                        pageSize: 10,
                        params: {
                            checkType: 4
                        }
                    },
                },
            }
        },
        components: {
            cancellationCheck,
            cancellationLook,
            EleTableComp,
        },

    }
</script>